timsort: Add gtk_tim_sort_set_max_merge_size()
authorBenjamin Otte <otte@redhat.com>
Sat, 18 Jul 2020 02:45:46 +0000 (04:45 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 22 Jul 2020 12:04:40 +0000 (14:04 +0200)
commita209e54b8f75a07b2695c41053ae711a541d7ddf
tree2ee07a953aab7b56e05143a6baae8083bf91886d
parent8921dadaa1f80c39aaf07b261e9fffa62c3e43ef
timsort: Add gtk_tim_sort_set_max_merge_size()

Makes the SOrtListModel responsive when incrementally sorting.

By making it configurable we can avoid losting performance in the
non-incremental case.
gtk/gtksortlistmodel.c
gtk/gtktimsort-impl.c
gtk/gtktimsort.c
gtk/gtktimsortprivate.h